package com.edu.service;

import com.edu.dao.EquipmentMapper;
import com.edu.pojo.Equipment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public class EquipmentServiceImpl implements  EquipmentService{
    private EquipmentMapper equipmentMapper;
    public void setEquipmentMapper(com.edu.dao.EquipmentMapper equipmentMapper) {
        this.equipmentMapper = equipmentMapper;
    }

    public int addEquip(Equipment equipment){
        return  equipmentMapper.addEquip(equipment);
    }

    public List<Equipment> showAllEquip(int department){
        return equipmentMapper.showAllEquip(department);
    }

    public int showEquipByNa( String Name){
        return  equipmentMapper.showEquipByNa(Name);
    }

    public int updateEquip(Equipment equipment){
        return equipmentMapper.updateEquip(equipment);
    }

    public Equipment showEqById(int id) {
        return equipmentMapper.showEqById(id);
    }
}
